<?php

namespace App\Containers\AppSection\Pledge\Providers;

use App\Containers\AppSection\Pledge\Models\DDU;
use App\Containers\AppSection\Pledge\Models\Movable;
use App\Containers\AppSection\Pledge\Models\Other;
use App\Containers\AppSection\Pledge\Models\Properties\Contracts\Lease;
use App\Containers\AppSection\Pledge\Models\Properties\Contracts\Ownership;
use App\Containers\AppSection\Pledge\Models\Properties\Contracts\Uses;
use App\Containers\AppSection\Pledge\Models\Property;
use App\Ship\Providers\ShipProvider;
use Illuminate\Database\Eloquent\Relations\Relation;

class RelationProvider extends ShipProvider
{
    public function register(): void
    {
        Relation::morphMap([
            'ddu' => DDU::class,
            'movable' => Movable::class,
            'other' => Other::class,
            'property' => Property::class,

            'lease' => Lease::class,
            'ownership' => Ownership::class,
            'uses' => Uses::class,
        ]);

        parent::register();
    }
}
